import { Browser } from 'puppeteer-core';

export interface BrowserStatus {
  isRunning: boolean;
  lastChecked: number;
  inProgress: boolean;
  action?: 'starting' | 'stopping';
}

export interface BrowserInstance {
  id: string;
  browser: Browser;
  config: BrowserConfig;
  status: BrowserStatus;
}

export interface SaveBrowserConfig {
  id: string; // 实例ID
  name: string; // 实例名称
  chromePath?: string; // 浏览器路径
  userAgent?: string; // User Agent
  userDataDir?: string; // 可选的用户数据目录
}

export interface BrowserConfig extends SaveBrowserConfig {
  userDataDir: string;
} 